﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_AdminMsaster : System.Web.UI.MasterPage
{
    public string userName, weihuan, qianfei;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["userName"] != null)
        {
            userName = Session["userName"].ToString();
            SQL sql = new SQL();
            string i = sql.EXQSQL("select COUNT(*) from Borrow_books_manage where  ReturnDate IS NULL");
            string a = sql.EXQSQL("select account from Reader_info where ReaderID='" + userName + "'");
            if (Convert.ToInt32(i) > 0)
                weihuan = "  <i class=\"fa fa-comment fa-fw\"></i>未还图书提醒 <span class=\"pull-right text-muted small\">" + i + " 本</span>";
            if (Convert.ToDouble(a) < 0)
                qianfei = "  <i class=\"fa fa-comment fa-fw\"></i>欠费提醒 <span class=\"pull-right text-muted small\">" + a + " 元</span>";
        }
    }
}
